\hypertarget{classTempli}{\section{Templi类 参考}
\label{classTempli}\index{Templi@{Templi}}
}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classTempli_a867f6f5e78c6fb978a0375a53dcbfdcc}{create\-\_\-webapp} (\$config)
\item 
\hyperlink{classTempli_a4bda0a4a9ed638df689f599877ba4f87}{run} ()
\end{DoxyCompactItemize}
\subsection*{静态 Public 成员函数}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classTempli_a1524b7d89df9ca95b2c68ddf86f1ed98}{get\-Version} ()
\item 
static \hyperlink{classTempli_a06ae2e87e25063731466fd98b07e0ca2}{get\-\_\-config} (\$field=N\-U\-L\-L, \$default=N\-U\-L\-L)
\item 
static \hyperlink{classTempli_ae708677cd7ceef1eee0a99360a339dfd}{get\-Arr\-Val} (array \$arr, \$key, \$default=N\-U\-L\-L)
\item 
static \hyperlink{classTempli_ac729fb3542050ba923d6a32b3032b81f}{model} (\$model, \$type=false)
\item 
static \hyperlink{classTempli_a850018635baddb4f865b0e48b321b9c6}{include\-\_\-html} (\$file, \$module=null)
\item 
static \hyperlink{classTempli_a148a79dff9c0b0cbc247e67073f53e75}{include\-\_\-module\-\_\-file} (\$file, \$module=null)
\item 
static \hyperlink{classTempli_a55bf000300241757d147636f297fcc43}{include\-\_\-common\-\_\-file} (\$file, \$path=null)
\item 
static \hyperlink{classTempli_af0a382135705f45ae8ebc4787ef2aa7a}{array\-\_\-include} (\$file\-\_\-arr=array())
\item 
static \hyperlink{classTempli_aba1e11e925f72b6f569f4a178b2c3f01}{include\-\_\-file} (\$file)
\item 
static \hyperlink{classTempli_a139e6550ab8c8ef2a75b96aebf72c653}{app\-Exception} (\$e)
\item 
static \hyperlink{classTempli_a6e0664c3db774a5dea9dcd4f44c80163}{app\-Error} (\$errno, \$errstr, \$errfile, \$errline)
\item 
static \hyperlink{classTempli_a283bbbb0ba06f6a3a984e0f063094e75}{\-\_\-\-\_\-autoload} (\$class)
\end{DoxyCompactItemize}


\subsection{详细描述}
Temp\-Li框架 基于mvc开发模式 简单 小巧 易用 核心类 \begin{DoxyAuthor}{作者}
七觞酒  \href{mailto:739800600@qq.com}{\tt 739800600@qq.\-com} 
\end{DoxyAuthor}
\begin{DoxyDate}{日期}
2013-\/07-\/08 
\end{DoxyDate}


\subsection{成员函数说明}
\hypertarget{classTempli_a283bbbb0ba06f6a3a984e0f063094e75}{\index{Templi@{Templi}!\-\_\-\-\_\-autoload@{\-\_\-\-\_\-autoload}}
\index{\-\_\-\-\_\-autoload@{\-\_\-\-\_\-autoload}!Templi@{Templi}}
\subsubsection[{\-\_\-\-\_\-autoload}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::\-\_\-\-\_\-autoload (
\begin{DoxyParamCaption}
\item[{}]{\$class}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_a283bbbb0ba06f6a3a984e0f063094e75}
自动加载 类文件 包括 Model、controller、libraries 类 \hypertarget{classTempli_a6e0664c3db774a5dea9dcd4f44c80163}{\index{Templi@{Templi}!app\-Error@{app\-Error}}
\index{app\-Error@{app\-Error}!Templi@{Templi}}
\subsubsection[{app\-Error}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::app\-Error (
\begin{DoxyParamCaption}
\item[{}]{\$errno, }
\item[{}]{\$errstr, }
\item[{}]{\$errfile, }
\item[{}]{\$errline}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_a6e0664c3db774a5dea9dcd4f44c80163}
自定义错误处理 \hypertarget{classTempli_a139e6550ab8c8ef2a75b96aebf72c653}{\index{Templi@{Templi}!app\-Exception@{app\-Exception}}
\index{app\-Exception@{app\-Exception}!Templi@{Templi}}
\subsubsection[{app\-Exception}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::app\-Exception (
\begin{DoxyParamCaption}
\item[{}]{\$e}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_a139e6550ab8c8ef2a75b96aebf72c653}
自定义异常处理 \hypertarget{classTempli_af0a382135705f45ae8ebc4787ef2aa7a}{\index{Templi@{Templi}!array\-\_\-include@{array\-\_\-include}}
\index{array\-\_\-include@{array\-\_\-include}!Templi@{Templi}}
\subsubsection[{array\-\_\-include}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::array\-\_\-include (
\begin{DoxyParamCaption}
\item[{}]{\$file\-\_\-arr = {\ttfamily array()}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_af0a382135705f45ae8ebc4787ef2aa7a}
多位置引入文件 找到文件 后返回 \hypertarget{classTempli_a867f6f5e78c6fb978a0375a53dcbfdcc}{\index{Templi@{Templi}!create\-\_\-webapp@{create\-\_\-webapp}}
\index{create\-\_\-webapp@{create\-\_\-webapp}!Templi@{Templi}}
\subsubsection[{create\-\_\-webapp}]{\setlength{\rightskip}{0pt plus 5cm}Templi\-::create\-\_\-webapp (
\begin{DoxyParamCaption}
\item[{}]{\$config}
\end{DoxyParamCaption}
)}}\label{classTempli_a867f6f5e78c6fb978a0375a53dcbfdcc}
创建应用 
\begin{DoxyParams}[1]{参数}
type & {\em \$config} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{classTempli_a06ae2e87e25063731466fd98b07e0ca2}{\index{Templi@{Templi}!get\-\_\-config@{get\-\_\-config}}
\index{get\-\_\-config@{get\-\_\-config}!Templi@{Templi}}
\subsubsection[{get\-\_\-config}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::get\-\_\-config (
\begin{DoxyParamCaption}
\item[{}]{\$field = {\ttfamily NULL}, }
\item[{}]{\$default = {\ttfamily NULL}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_a06ae2e87e25063731466fd98b07e0ca2}
获取配置文件信息 \$field 为空时 获取全部配置信息 \$field 为字符串时 返回当前 索引 配置值 \$field 为数组时 设置配置信息 
\begin{DoxyParams}[1]{参数}
 & {\em \$field} & \\
\hline
null & {\em \$default} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
array$|$mixed 
\end{DoxyReturn}
\hypertarget{classTempli_ae708677cd7ceef1eee0a99360a339dfd}{\index{Templi@{Templi}!get\-Arr\-Val@{get\-Arr\-Val}}
\index{get\-Arr\-Val@{get\-Arr\-Val}!Templi@{Templi}}
\subsubsection[{get\-Arr\-Val}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::get\-Arr\-Val (
\begin{DoxyParamCaption}
\item[{array}]{\$arr, }
\item[{}]{\$key, }
\item[{}]{\$default = {\ttfamily NULL}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_ae708677cd7ceef1eee0a99360a339dfd}
获取 数组中元素的值 
\begin{DoxyParams}[1]{参数}
array & {\em \$arr} & \\
\hline
string & {\em \$key} & \\
\hline
mixed & {\em \$default} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
mixed 
\end{DoxyReturn}
\hypertarget{classTempli_a1524b7d89df9ca95b2c68ddf86f1ed98}{\index{Templi@{Templi}!get\-Version@{get\-Version}}
\index{get\-Version@{get\-Version}!Templi@{Templi}}
\subsubsection[{get\-Version}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::get\-Version (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_a1524b7d89df9ca95b2c68ddf86f1ed98}
获取版本信息 \hypertarget{classTempli_a55bf000300241757d147636f297fcc43}{\index{Templi@{Templi}!include\-\_\-common\-\_\-file@{include\-\_\-common\-\_\-file}}
\index{include\-\_\-common\-\_\-file@{include\-\_\-common\-\_\-file}!Templi@{Templi}}
\subsubsection[{include\-\_\-common\-\_\-file}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::include\-\_\-common\-\_\-file (
\begin{DoxyParamCaption}
\item[{}]{\$file, }
\item[{}]{\$path = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_a55bf000300241757d147636f297fcc43}
加载公共 函数库 类库文件 
\begin{DoxyParams}[1]{参数}
 & {\em \$file} & 文件名 \\
\hline
null & {\em \$path} & \\
\hline
\end{DoxyParams}
\hypertarget{classTempli_aba1e11e925f72b6f569f4a178b2c3f01}{\index{Templi@{Templi}!include\-\_\-file@{include\-\_\-file}}
\index{include\-\_\-file@{include\-\_\-file}!Templi@{Templi}}
\subsubsection[{include\-\_\-file}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::include\-\_\-file (
\begin{DoxyParamCaption}
\item[{}]{\$file}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_aba1e11e925f72b6f569f4a178b2c3f01}
引入文件 默认加载路径是 系统类库 \hypertarget{classTempli_a850018635baddb4f865b0e48b321b9c6}{\index{Templi@{Templi}!include\-\_\-html@{include\-\_\-html}}
\index{include\-\_\-html@{include\-\_\-html}!Templi@{Templi}}
\subsubsection[{include\-\_\-html}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::include\-\_\-html (
\begin{DoxyParamCaption}
\item[{}]{\$file, }
\item[{}]{\$module = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_a850018635baddb4f865b0e48b321b9c6}
加载模板视图文件 
\begin{DoxyParams}{参数}
{\em \$file} & 文件名 \\
\hline
{\em \$module} & 模块名 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
string 
\end{DoxyReturn}
\hypertarget{classTempli_a148a79dff9c0b0cbc247e67073f53e75}{\index{Templi@{Templi}!include\-\_\-module\-\_\-file@{include\-\_\-module\-\_\-file}}
\index{include\-\_\-module\-\_\-file@{include\-\_\-module\-\_\-file}!Templi@{Templi}}
\subsubsection[{include\-\_\-module\-\_\-file}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::include\-\_\-module\-\_\-file (
\begin{DoxyParamCaption}
\item[{}]{\$file, }
\item[{}]{\$module = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_a148a79dff9c0b0cbc247e67073f53e75}
加载模块 函数库 类库文件 
\begin{DoxyParams}{参数}
{\em \$file} & 文件名 \\
\hline
{\em \$module} & 模块名 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
bool 
\end{DoxyReturn}
\hypertarget{classTempli_ac729fb3542050ba923d6a32b3032b81f}{\index{Templi@{Templi}!model@{model}}
\index{model@{model}!Templi@{Templi}}
\subsubsection[{model}]{\setlength{\rightskip}{0pt plus 5cm}static Templi\-::model (
\begin{DoxyParamCaption}
\item[{}]{\$model, }
\item[{}]{\$type = {\ttfamily false}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classTempli_ac729fb3542050ba923d6a32b3032b81f}
加载并实例化模型类 
\begin{DoxyParams}[1]{参数}
 & {\em \$model} & \\
\hline
bool & {\em \$type} & true 高级载入模型文件 false 快捷实例化模型 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{classTempli_a4bda0a4a9ed638df689f599877ba4f87}{\index{Templi@{Templi}!run@{run}}
\index{run@{run}!Templi@{Templi}}
\subsubsection[{run}]{\setlength{\rightskip}{0pt plus 5cm}Templi\-::run (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classTempli_a4bda0a4a9ed638df689f599877ba4f87}
初始化函数 

该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
templi/Templi.\-class.\-php\end{DoxyCompactItemize}
